<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>mamma</title>
<link rel="shortcut icon" href="../image/icon_mamma.ico">

<script src="../js/jquery-2.1.1.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	
	$('#back').on('click', backlist);	
	
	$('#update').on('click', udatebt);	
	
	$('#deletebt').on('click', deletebt1);	
});	
	
function deletebt1(){
	
	var id = ${vac.id};
	
	$.ajax({
		url: 'jdelete.action',
		type: 'POST',
		dataType: 'json',
		data: {id:id},
		success: backlist
	});
	
}

function backlist(){
	location.href='../admin/goJusalistPage.action';
}

function udatebt(){
	
	var id = ${vac.id};
	location.href="../admin/jread2.action?id=" + id;
} 

</script>

<style type="text/css">
	
	table.maintable{margin:0 auto; width: 900px; border: thin; border-color: #BDBDBD;border-style: solid;table-layout: fixed;}
	th{text-align: center;background-color: #EAEAEA;width:100px; text-indent: 5px;border-bottom: thin; border-bottom-style: solid; border-bottom-color: #BDBDBD;}
	.thcontent{border: 0px;}
	.adth{border: 0px;}
	td{width:800px;border-bottom: thin; border-bottom-style: solid; border-bottom-color: #BDBDBD;}
	.title{height:50px; font-size: 18px;font-weight: bold;}
	.content{height:300px;border: 0px;}
	.adtd{border: 0px;}
	h1{text-align: center;}
	input{width: 100px;font-size: 20px;}
	textarea {resize:none;} 

	
	
</style>
</head>
<body topmargin="0"  leftmargin="0" rightmargin="0">
<table id="adhead" border="0" width="100%" height="100px" style="text-align: center;background-color: #EAEAEA;">
<tr class="adtr">
<td class="adtd">	
	<a href="../admin/goNoticelistPage.action">공지 관리</a>
	<a href="../admin/goJusalistPage.action">백신 알림</a>
	<a href="../admin/goMemberlistPage.action">회원 목록 보기</a>
	<a href="../admin/goAdBannerPage.action">광고 관리</a>
	<a href="../account/logout.action">로그아웃</a>
</td>
</tr></table>
	<h1>[ 공지 보기 ]</h1>
<br><br>

<table class="maintable">
	<tr>
		<th>시작개월 </th>
		<td>${vac.startMonth}</td>
	</tr>
	<tr>
		<th>종료개월 </th>
		<td>${vac.endMonth}</td>
	</tr>
	<tr>
		<th>제목 </th>
		<td class="title">${vac.title}</td>
	</tr>
	<tr>
		<th class="thcontent">내용 </th> 
		<td class="content">${vac.content}</td>
	</tr>
</table>
<br>

<form style="text-align: center;">
	<input type="button" id="back" value="목록">
	<input type="button" id="update" value="수정">
	<input type="button" id="deletebt" value="삭제">
</form>

</body>
</html>